  <%--
  Created by IntelliJ IDEA.
  User: mengweiqiang
  Date: 2017/4/28
  Time: 15:00
  Function:user login
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用户登录</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/plugins/bootstrap/css/bootstrap.min.css">
    <script src="${pageContext.request.contextPath}/plugins/jquery/jquery-3.2.1.min.js"></script>
    <script src="${pageContext.request.contextPath}/plugins/bootstrap/js/bootstrap.min.js"></script>
    <script language="JavaScript">
        history.pushState(null, null, document.URL);
        window.addEventListener('popstate', function () {
            history.pushState(null, null, document.URL);
        })
    </script>
</head>
<body style="background-color:#eeeeee">
<div class="container">
    <div class="row">
        <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" style="text-align: center;margin-top: 10%">
            <form role="form"  method="post" style="background-color:rgba(255,255,255,0.8);border: 1px solid #dedede;border-radius:8px;margin:0 auto;padding-bottom:30px;padding-left:30px; padding-right:30px;margin-bottom:30px;max-width: 500px" action="">
                <h2 style="font-family: '黑体';margin-bottom: 1%;color: #2aabd2;text-align: center">龙华烈士纪念馆</h2>
                <h4 style="font-family: '黑体';text-align: right">小龙人信息管理系统</h4>
                <input type="hidden" name="method" value="login">
                <hr>
                <div class="form-group" >
                    <div class="form-inline">
                        <label  for="user_name" class="glyphicon glyphicon-user" style="margin: 5px"></label>
                        <input type="text" name="user_name" id="user_name" class="form-control" style="width: 90%;" placeholder="请输入用户名">
                    </div>
                </div>
                <div class="form-group">
                    <div class="form-inline">
                        <label class="glyphicon glyphicon-lock" style="margin: 5px"></label>
                        <input type="password" name = "user_pwd" id="user_pwd" class="form-control" style="width: 90%;" placeholder="请输入密码">
                    </div>
                </div>
                <div class="form-group" >
                    <div class="form-inline">
                        <label  class="glyphicon glyphicon-info-sign" style="margin: 5px;display: none"></label>
                        <label class="control-label" style="width: 90%;color: red">${sessionScope.SPRING_SECURITY_LAST_EXCEPTION.message}</label>
                    </div>
                </div>
                <br>
                <div class="form-group" style="text-align: center">
                    <div class="form-inline">
                        <button type="submit" class="btn btn-primary" >登录</button>
                        <label class="control-label" style="margin-left: 5%"><a href="">忘记密码？</a></label>
                    </div>
                </div>
                <hr>
                <div class="form-group">
                    <label >版权所有©龙华烈士陵园 地址:上海市龙华西路180号 邮编:200232</label>
                </div>
                <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
            </form>

        </div>
    </div>

</div>
</body>
</html>
